<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditProductCatalogBaseProperties.ascx.cs" Inherits="UCommerce.Web.UI.Catalog.EditProductCatalogBaseProperties" %>
<%@ Register tagPrefix="commerce" tagName="ValidationSummary" src="../Controls/ValidationSummaryDisplay.ascx" %>

<commerce:ValidationSummary runat="server" />

<div class="propertyPane">
    <div class="propertyItem">
        <div class="propertyItemHeader">
            <asp:Localize ID="Localize1" runat="server" meta:resourceKey="Name" />
        </div>
        <div class="propertyItemContent">
            <asp:TextBox runat="server" ID="NameTextBox" Text="<%# View.Catalog.Name %>" OnDataBinding="NameTextBox_DataBinding" CssClass="mediumWidth" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="NameTextBox" Display="Static" Text="*" ErrorMessage='<%# GetLocalResourceObject("Name.Text") %>' CssClass="validator" />
            <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="NameTextBox" OnServerValidate="UniqueName_ServerValidate" meta:resourceKey="UniqueNameValidator" ErrorMessage='<%# GetLocalResourceObject("Name.Text") %>' />
            <asp:CustomValidator runat="server" ControlToValidate="NameTextBox" Display="Static" id="LicenseValidator" ErrorMessage="Your license does not support creating any more." CssClass="validator" OnServerValidate="LicenseCheckValidator_ServerValidate" />
        </div>
    </div>
    <div class="propertyPaneFooter"></div>
</div>

<div class="propertyPane">
    <div class="propertyItem">
        <div class="propertyItemHeader">
            <asp:Localize ID="Localize2" runat="server" meta:resourceKey="PriceGroup" />
        </div>
        <div class="propertyItemContent">
            <asp:DropDownList runat="server" ID="PriceGroupDropDown" DataSource="<%# View.PriceGroups %>" DataTextField="Name" DataValueField="PriceGroupId" OnDataBound="PriceGroup_DataBound" CssClass="mediumWidth" />
        </div>
    </div>
    <div class="propertyItem">
        <div class="propertyItemHeader">
            <asp:Localize ID="Localize3" runat="server" meta:resourceKey="ShowPricesWithVat" />
        </div>
        <div class="propertyItemContent">
            <asp:CheckBox runat="server" ID="ShowPriceInclVatCheckBox" Checked="<%# View.Catalog.ShowPricesIncludingVAT %>" />
        </div>
    </div>
    <div class="propertyPaneFooter"></div>
</div>
<%--<div style="text-align: left;">
    <div class="propertyPane leftAligned">
        <div>
            <table>      
                <tr>
                    <th><asp:Localize runat="server" meta:resourceKey="Inventory" /></th>
                    <td><asp:DropDownList runat="server" ID="InventoryDropDown" DataSource="<%# View.Inventories %>" DataTextField="Name" DataValueField="InventoryId" OnDataBound="Inventory_DataBound" /></td>
                </tr>
                <tr>
                    <th><asp:Localize runat="server" meta:resourceKey="EnableInventory" /></th>
                    <td><asp:CheckBox runat="server" ID="EnableInventoryCheckBox" Checked="<%# View.Catalog.InventoryEnabled %>" /></td>
                </tr>
                <tr>
                    <th><asp:Localize runat="server" meta:resourceKey="DisplayOutOfStockProducts" /></th>
                    <td><asp:CheckBox runat="server" ID="DisplayOutOfStockProductsCheckBox" Checked="<%# View.Catalog.DisplayOutOfStockProducts %>" /></td>
                </tr>
                <tr>    
                    <th><asp:Localize runat="server" meta:resourceKey="AllowOutOfStockProductOrder" /></th>
                    <td><asp:CheckBox runat="server" ID="AllowOutOfStockProductOrderCheckBox" Checked="<%# View.Catalog.AllowOutOfStockOrders %>" /></td>
                </tr>
            </table>
        </div>
    </div>
</div> --%>